package cn.sunxyz.struct.decorator;

/**
 * Created by yangrd on 2017/5/12.
 */
public class BigCup extends DirnkDecorator {
    public BigCup(Drink drink) {
        super(drink);
    }

    @Override
    public int getPrice() {
        int price = formula.apply(drink.getPrice());
        return price;
    }

    @Override
    public String toString() {
        return "大杯:" + drink.toString();
    }
}
